import http from "../utils/http2.js";

/**产品分类列表 */
export function queryCategory(params) {
  return http.post("/v1/category/queryAll",params);
}

/**删除 */
export function deleteCategory(id) {
  return http.delete("/v1/category/delete", id);
}

/**保存 */
export function saveCategory(data) {
  return http.post("/v1/category/save", data);
}

/**修改 */
export function updateCategory(data) {
  return http.put("/v1/category/update", data);
}